﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace WebPortal.Models.ViewModel
{
    public class UserRegistrationModel
    {
        [Required]
        [RegularExpression("[.\\-_a-z0-9]+@([a-z0-9][\\-a-z0-9]+\\.)+[a-z]{2,6}")]
        public string Email { get; set; }

        [Required]
        public string Password { get; set; }

        [Required]
        public string Captcha { get; set; }
    }
}